<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
	<head><title>登录页面</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/jquery.min.js"></script>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/bootstrap.min.js"></script>
    <link href="css/signin.css" rel="stylesheet">
   
    <script type="text/javascript">  
        $(function() {  
        $('#kaptchaImage').click(function() {$(this).attr('src','kaptcha.jpg?' + Math.floor(Math.random() * 100));});  
       }
       );  
    </script>  

	</head>
	<body>
	
	<div class="container">

      <form class="form-signin" action="login.action" method="post">
        <h2 class="form-signin-heading">请登录</h2>
        <input type="text"  class="form-control"  name="user.username" placeholder="用户名"  autofocus required>
        <input type="password"  class="form-control" name="user.password" placeholder="密码" required>
        <input type="text" name="kaptcha" class="form-control" placeholder="输入验证码" required  /> <img src="kaptcha.jpg" class="img-thumbnail" width="120" id="kaptchaImage" title="看不清，点击换一张" />看不清？点击图片换一张  
        <input class="btn btn-lg btn-primary btn-block" type="submit" value="登录"><a href="register.jsp">注册</a>
      </form>
      
    </div> 
	</body>
</html>